<?php
return [
    'components' => [
        'db' => [
            'class' => '\common\db\MyConnection',
            'dsn' => 'mysql:host=b2bmir-rds.mysql.rds.aliyuncs.com;',
            'username' => 'vJ8nyBeBnVq2+fNp8fJfFA==',
            'password' => 'njtEcQCHHbyww3ulKQYxBg==',
            'charset' => 'utf8',
        ],
        'dbSupplierBigdata' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=mysql-proxy.myfuwu.com.cn;port=63312;dbname=mycommunity_contractor_bigdata;',
            'username' => 'mysscm',
            'password' => 'ryFkxa8oh<d9nglX',
            'charset' => 'utf8',
        ],
        'dbSupplier' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=b2bmir-rds.mysql.rds.aliyuncs.com;',
            'username' => 'common_search',
            'password' => 'XG9EYbytT6nd',
            'charset' => 'utf8',
        ],
//        'dbSupplierBigdata' => [//@todo 测试环境大数据库
//            'class' => 'yii\db\Connection',
//            'dsn' => 'mysql:host=mysql-proxy.myfuwu.com.cn;port=63310;dbname=mycommunity_contractor_bigdata;',
//            'username' => 'gxsdsj_read',
//            'password' => 'DtKQ0fDS',
//            'charset' => 'utf8',
//        ],
        'cache' => [
            'class' => 'yii\redis\Cache',
            'redis' => [
                'hostname' => '172.19.0.7',
                'port' => 6379,
                'database' => 0,
            ]
        ],
        'redis' => [
            'class' => 'yii\redis\Connection',
            'hostname' => 'r-uf66652321f50bb4.redis.rds.aliyuncs.com',
            'port' => 6379,
            'database' => 0,
            'password' =>'Mysoft123'
        ],
        'mongodb' => [
            'class' => '\common\mongo\Connection',
            'dsn' => 'mongodb://readwrite:fEfhR9jI@dds-uf605ee3bc5482541.mongodb.rds.aliyuncs.com:3717,dds-uf605ee3bc5482542.mongodb.rds.aliyuncs.com:3717/admin?replicaSet=mgset-34049149&readPreference=secondaryPreferred',
        ],
        'queue' => [
            'class' => '\common\queue\RedisQueue',
            'hostname' => '172.19.0.7',
            'port' => 6379,
            'database' => 0,
        ],
        'mq' => [
            'class' => '\common\mq\alimns\AliMessageService',
            'accessId' => 'bz5CnJ8DYW2zMYuk',
            'accessKey' => 'kbwN4tL683w6NYDG0ayaSCVrxtLHim',
            'endPoint' => 'http://1132958195630943.mns.cn-beijing.aliyuncs.com/',
        ],
        'iQueue' => [
            'class' => 'iQueue\MessageQueue',
            'type' => 'alimns',
            'config' => [
                'accessId' => 'bz5CnJ8DYW2zMYuk',
                'accessKey' => 'kbwN4tL683w6NYDG0ayaSCVrxtLHim',
                'endPoint' => 'http://1132958195630943.mns.cn-beijing.aliyuncs.com/',
                'prefix' => 'yuncaigou-',
                'allowQueues' => [
                    \common\queue\QueueConstants::COMPANY_SUPPLIER_INDEX_QUEUE
                    , \common\queue\QueueConstants::BIG_DATA_SUPPLIER_INDEX_QUEUE
                    , \common\queue\QueueConstants::BIG_DATA_MATERIAL_INDEX_QUEUE
                ],
                'cryptInterface' => ''
            ],
        ],
        'elasticsearch' => [
            'class' => '\common\search\Connection',
            'auth' => ['username' => 'elastic', 'password' => 'FVYGzRtq!h4P8G6q54Lgwzgk'],
            'nodes' => [
                [
                    'http_address' => 'es-cn-4591a5yr2000arrg3.elasticsearch.aliyuncs.com:9200',    //内网地址
                ],
            ],
        ],
    ],
];
